import {defineStore} from 'pinia'
import {ref } from 'vue'
export const BaseStore=defineStore('base',()=>{
    const isCollapse=ref(false)
    const asideWidth=ref(200)
    const toggleIsCollapse=()=>{
        isCollapse.value=!isCollapse.value
    }
    const setAsideWidth=(width)=>{
        asideWidth.value=width
    }
    return {
        isCollapse,toggleIsCollapse,
        asideWidth,setAsideWidth
    }
})